z = int(input("输入一个值："))
for y in range(1,z):
    print(y)
z = z * y
print(z)
